﻿@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_BackstageLayout.cshtml";
}
@model Sx.Mall.WebContract.Dto.LoginUser
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" href="~/them/login.css" type="text/css">

    <style>
        .error {
            position: absolute;
            top: 150px;
            width: 173px;
            left: 115px;
            border: 1px solid #ffbdbf;
            color: #e6393d;
            background: #ffebec;
            float: none;
            z-index: 100;
        }
    </style>

    <script type="text/javascript">
        function GetParent(obj, win) {
            if (obj != win) {
                return GetParent(obj.parent, obj);
            }
            else {
                obj.location.reload();
            }
        }
        document.domain = "Sxmall.com";
        if (window.parent != window) {
            GetParent(window.parent, window);
        }
    </script>
</head>

<body>
    <div class="login-area">
        <img src="~/them/imgaes/admin.jpg">
        @using (Html.BeginForm("Login", "Admin", FormMethod.Post, new { ID = "Lfrom" }))
        {
            <div class="login-panel">
                <div class="panel-left">
                    <div class="login-box">
                        <span>用户名：</span>  @Html.TextBoxFor(m => m.UserName, new { placeholder = "Account", @class = "logininput inputuser account" })
                        <span>密&nbsp;&nbsp;&nbsp;码：</span> @Html.PasswordFor(m => m.pwd, new { placeholder = "Password", @class = "logininput inputpassword password", @onFocus = "Focus()" })
                        <span>
                            @if (@ViewBag.Result == false)
                            {
                                <label id="login_error" class="error">@ViewBag.ErrorMessages</label>
                            }
                        </span>
                    </div>

                </div>
                <div class="panel-right">
                    <input type="submit" value="" class="submit" />
                </div>
            </div>
        }
    </div>
</body>
</html>


